<html>
<head>
<script type="text/javascript" src="loadxmldoc.js"> 
</script>
</head>
<body>

<script type="text/javascript">

xmlDoc=loadXMLDoc("books.xml");
x=xmlDoc.getElementsByTagName("title")[0];
document.writeln("Parent of Title : "+x.parentNode.nodeName +"<br />");

y=x.parentNode;
ychild=y.childNodes;
document.write("Cac node cung cap voi title<br />");
for (i=0;i<ychild.length;i++)
  { 
	  if (ychild[i].nodeType==1){
		  document.write(ychild[i].nodeName + "_co gia tri la_" +ychild[i].childNodes[0].nodeValue);
		  // document.write(ychild[i].childNodes[0].nodeValue);
		  document.write("<br />");
	  }
  }


</script>
</body>
</html>
